﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using POSSystem.DAL;

namespace POSSystem.BLL
{
    public class Expenses : _Expenses
    {
        public static void DeleteByIds(string ids)
        {
            Expenses exps = new Expenses();
            exps.Where.ID.Value = ids;
            exps.Where.ID.Operator = MyGeneration.dOOdads.WhereParameter.Operand.In;
            exps.Query.Load();

            for (int i = 0; i < exps.RowCount; i++)
            {
                exps.Deleted = true;
                exps.MoveNext();
            }

            exps.Save();
        }
    }
}
